<?php
class User_levelAttr extends BaseAttr {
	public function User_levelAttr($attr, $lang=null, $mutil_lang=false){
		parent::BaseAttr($attr, $lang, $mutil_lang);
	}
	
	protected function init_data(){
		$mod = new User_levelModel();
		$user_levels = $mod->find(array('site_id'=>SITE_ID), 'name');
		$options = array();
		foreach ($user_levels as $key=>$v){
			$options[$key] = $v['name'][LANGUAGE];
		}
		return array(
			'options' => $options
		);
	}
}

?>